<html xmlns:py="http://genshi.edgewall.org/">

<head>
<title>Peaksight - Explore</title>

<link rel="stylesheet" type="text/css" href="css/style.css"></link>
<link rel="stylesheet" type="text/css" href="css/imp.css"></link>
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css' />

</head>

<body>

<header>
<div>
<a href="index.html"><img src="img/peaksight.png" /><h1>Peaksight</h1></a>
</div>
</header>

<div class="container-selection">
<h3>Select Database</h3>

<form action="iexplore" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>CouchDB address:</td> 
<td>
<py:choose test="cdb is ''">
	<py:when test="True"><input type="text" name="couchdb" value="http://localhost:5984"/></py:when>
	<py:otherwise><input type="text" name="couchdb" value="${cdb}"/></py:otherwise>
</py:choose>
</td>
</tr>
<tr>
<py:if test="not(db is None)">
	<td>Database name:</td> 
	<td>
	<select name="database">
	<py:for each="item in db">
		<option value="${item}">${item}</option>
	</py:for>
	</select>
	</td>
</py:if>
</tr>
<tr>
<td><input type="submit" value="${button}" /></td>
</tr>
</table>
</form> 

</div>



</body>

</html>
